-------------------------  SORT - External DOS Command  ------------------------

SORT sorts lines of input data and writes out the sorted lines.

FORMAT:   SORT [/R][/+n]

REMARKS:

   The default sort sequence is ascending;  A comes before Z.

   /R  - specifies a reverse sort, so that Z comes before A.

   +n  - "n" is an integer specifying the starting column of the sort.  If "n"
         is not specified, the sort starts in column 1.

   The maximum file size that can be sorted is 64,512 characters.

NOTE:  In DOS Version 3, you may preface SORT with the drive letter and
   directory path, [d:][path], where the command file can be found.

EXAMPLES:

Display directory information sorted by filename/extension (the sort begins in
column 1):

      DIR | SORT


Display directory information sorted by the file size:

      DIR | SORT /+14


Sort the file MYFILE in reverse order.  Begin the sort in column 5.  Write the
sorted data to MYFILE.SRT file:

      SORT /R/+5 < MYFILE > MYFILE.SRT
